package com.daxiasoftware.xxx.controller;


import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.daxiasoftware.xxx.entity.Pay;

/**
 * <p>
 * 支付 前端控制器
 * </p>
 *
 * @author daxia
 * @since 2018-01-03
 */
@Controller
@RequestMapping("/admin/pay")
public class AdminPayController extends BaseController {
	
	@RequestMapping("list")
	public String list(Map<String, Object> map, Page<Pay> page) throws Exception {
		Wrapper<Pay> wrapper = new EntityWrapper<Pay>();
		page = payService.selectPage(page, wrapper.orderBy("id desc"));
		map.put("page", page);
		map.put("list", page.getRecords());
		return "admin/pay/pay_list";
	}
}
